<%-- 
    Document   : department
    Created on : Oct 26, 2012, 11:08:20 AM
    Author     : DANG ANH
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-bean"  prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!-- Use beans-->
<jsp:useBean id="departmentModel" class="Model.DepartmentModel"/>
<c:set var="deps" value="${departmentModel.allDepartment}"/>

<h3>Department</h3>

<table class="data">
    <tr class="data">
        <th class="data" width="30px">No</th>
        <th class="data">Department ID</th>
        <th class="data">Department Name</th>
        <th class="data">Description</th>
        <th class="data" width="75px">Action</th>
    </tr>
    <c:forEach var="dep" items="${deps}">
    <tr class="data">
        <td class="data" width="30px">1</td>
        <td class="data">${dep.departmentId}</td>
        <td class="data">${dep.departmentName}</td>
        <td class="data">${dep.description}</td>
        <td class="data" width="75px">
    <center>
        <html:link action="/EditDepartment"><img src="mos-css/img/_edit.png" width="16px" height="16px"></html:link>&nbsp;&nbsp;&nbsp;
        <input type="checkbox" name="checkDelete" value="ON" />
    </center>
</td>
</tr>
</c:forEach>
</table>
<html:link action="/NewDepartment" styleClass="button">New Department</html:link>
<input type="button" value="Delete" name="btnDelete" class="button"/>
